Optimal. Leaf size=47 \[ \frac {A+B x}{a \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {823, 12, 266, 63, 208} \begin {gather*} \frac {A+B x}{a \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 63
Rule 208
Rule 266
Rule 823
Rubi steps
\begin {align*} \int \frac {A+B x}{x \left (a+b x^2\right )^{3/2}} \, dx &=\frac {A+B x}{a \sqrt {a+b x^2}}+\frac {\int \frac {a A b}{x \sqrt {a+b x^2}} \, dx}{a^2 b}\\ &=\frac {A+B x}{a \sqrt {a+b x^2}}+\frac {A \int \frac {1}{x \sqrt {a+b x^2}} \, dx}{a}\\ &=\frac {A+B x}{a \sqrt {a+b x^2}}+\frac {A \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )}{2 a}\\ &=\frac {A+B x}{a \sqrt {a+b x^2}}+\frac {A \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{a b}\\ &=\frac {A+B x}{a \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 47, normalized size = 1.00 \begin {gather*} \frac {A+B x}{a \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.33, size = 61, normalized size = 1.30 \begin {gather*} \frac {2 A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}-\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {A+B x}{a \sqrt {a+b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.00, size = 146, normalized size = 3.11 \begin {gather*} \left [\frac {{\left (A b x^{2} + A a\right )} \sqrt {a} \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, {\left (B a x + A a\right )} \sqrt {b x^{2} + a}}{2 \, {\left (a^{2} b x^{2} + a^{3}\right )}}, \frac {{\left (A b x^{2} + A a\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) + {\left (B a x + A a\right )} \sqrt {b x^{2} + a}}{a^{2} b x^{2} + a^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.44, size = 59, normalized size = 1.26 \begin {gather*} \frac {\frac {B x}{a} + \frac {A}{a}}{\sqrt {b x^{2} + a}} + \frac {2 \, A \arctan \left (-\frac {\sqrt {b} x - \sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 60, normalized size = 1.28 \begin {gather*} \frac {B x}{\sqrt {b \,x^{2}+a}\, a}-\frac {A \ln \left (\frac {2 a +2 \sqrt {b \,x^{2}+a}\, \sqrt {a}}{x}\right )}{a^{\frac {3}{2}}}+\frac {A}{\sqrt {b \,x^{2}+a}\, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.30, size = 48, normalized size = 1.02 \begin {gather*} \frac {B x}{\sqrt {b x^{2} + a} a} - \frac {A \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{a^{\frac {3}{2}}} + \frac {A}{\sqrt {b x^{2} + a} a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.29, size = 50, normalized size = 1.06 \begin {gather*} \frac {A}{a\,\sqrt {b\,x^2+a}}-\frac {A\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{a^{3/2}}+\frac {B\,x}{a\,\sqrt {b\,x^2+a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 11.29, size = 206, normalized size = 4.38 \begin {gather*} A \left (\frac {2 a^{3} \sqrt {1 + \frac {b x^{2}}{a}}}{2 a^{\frac {9}{2}} + 2 a^{\frac {7}{2}} b x^{2}} + \frac {a^{3} \log {\left (\frac {b x^{2}}{a} \right )}}{2 a^{\frac {9}{2}} + 2 a^{\frac {7}{2}} b x^{2}} - \frac {2 a^{3} \log {\left (\sqrt {1 + \frac {b x^{2}}{a}} + 1 \right )}}{2 a^{\frac {9}{2}} + 2 a^{\frac {7}{2}} b x^{2}} + \frac {a^{2} b x^{2} \log {\left (\frac {b x^{2}}{a} \right )}}{2 a^{\frac {9}{2}} + 2 a^{\frac {7}{2}} b x^{2}} - \frac {2 a^{2} b x^{2} \log {\left (\sqrt {1 + \frac {b x^{2}}{a}} + 1 \right )}}{2 a^{\frac {9}{2}} + 2 a^{\frac {7}{2}} b x^{2}}\right ) + \frac {B x}{a^{\frac {3}{2}} \sqrt {1 + \frac {b x^{2}}{a}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________